﻿namespace DI.WebApi.Service;

public interface IHelloService {
  /// <summary>
  /// 姓名
  /// </summary>
  string Name { get; set; }
  /// <summary>
  /// 问候语
  /// </summary>
  /// <returns></returns>
  string Greet ();
}

public class HelloService : IHelloService {
  public string Name { get; set; } = "Someone";
  
  public string Greet () { return $"你好, {Name}"; }
}
